package com.bxs.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

// 日志记录
@TableName("record")
@Data
public class Record {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;
    private Integer logLevel;      // 威胁等级
    private String description;        // 描述信息，有具体检测器生成
    private String sourceIp;
    private Integer sourcePort;  // 源ip及端口
    private String targetIp;
    private Integer targetPort;  // 目的IP及端口
    private String packetPath;  // 异常数据包文件路径
    private String otherInfo;   // 其他信息，Json字符串格式存储，便于扩展
}
